#include "mainwindow.h"
#include "SqliteDb.h"
#include <QMessageBox>
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    if(!SqliteDb::m_SqliteDb.reOpenSql("test"))
    {
        QMessageBox::warning(nullptr, "警告", "数据库连接失败");
        return 0;
    }
    MainWindow w;
    w.show();
    return a.exec();
}
